package com.travel.entity;

import org.springframework.stereotype.Component;

@Component
public class TOrderDetail   {
  private int detailId;
  private TOrder order;
  private TAttractions attractions;
  private int ticketNumber;
  private double ticketPrice;

  @Override
  public String toString() {
    return "TOrderDetail{" +
            "detailId=" + detailId +
            ", order=" + order +
            ", attractions=" + attractions +
            ", ticketNumber=" + ticketNumber +
            ", ticketPrice=" + ticketPrice +
            '}';
  }

  public TOrderDetail() {
  }

  public int getDetailId() {
    return detailId;
  }

  public void setDetailId(int detailId) {
    this.detailId = detailId;
  }

  public TOrder getOrder() {
    return order;
  }

  public void setOrder(TOrder order) {
    this.order = order;
  }

  public TAttractions getAttractions() {
    return attractions;
  }

  public void setAttractions(TAttractions attractions) {
    this.attractions = attractions;
  }

  public int getTicketNumber() {
    return ticketNumber;
  }

  public void setTicketNumber(int ticketNumber) {
    this.ticketNumber = ticketNumber;
  }

  public double getTicketPrice() {
    return ticketPrice;
  }

  public void setTicketPrice(double ticketPrice) {
    this.ticketPrice = ticketPrice;
  }

  public TOrderDetail(int detailId, TOrder order, TAttractions attractions, int ticketNumber, double ticketPrice) {
    this.detailId = detailId;
    this.order = order;
    this.attractions = attractions;
    this.ticketNumber = ticketNumber;
    this.ticketPrice = ticketPrice;
  }
}
